<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<!-- <sx:head parseContent="true" />
<s:fielderror /> -->
<title>规定时间考勤</title>
<sx:head extraLocales="en-us,nl-nl,de-de" />

</head>

<body topmargin='10' leftmargin='10' rightmargin='10' bottommargin='10'>
	<table width='100%' height='100%' border='0' cellspacing='1'
		cellpadding='0' align=center bgcolor='#9BBCFF'>
		<tr>
			<td colspan='2' bgcolor='#ffffff' valign=top>
				<table width='100%' border='0' cellspacing='0' cellpadding='0'>
					<tr>
						<td height='25' background='titlebg.gif'>&nbsp; 修改规定时间</td>
					</tr>
				</table> <s:form action="workTime_update" method="post" theme="simple">
					<table width='100%' border='1' cellspacing='1' cellpadding='3'
						bordercolor="#dddddd">
						<tr>
							<td>周期：</td>
							
						
							<td>
							<s:hidden name="workTime.weekTime"></s:hidden>
							<s:set name="time" value="workTime.weekTime"></s:set>
							<s:if test="#time ==0">
								<s:textfield value="星期日" readonly="true"></s:textfield>
							</s:if>
							<s:elseif test="#time ==1"><s:textfield value="星期一" readonly="true"></s:textfield></s:elseif>
							<s:elseif test="#time ==2"><s:textfield value="星期二" readonly="true"></s:textfield></s:elseif>
							<s:elseif test="#time ==3"><s:textfield value="星期三" readonly="true"></s:textfield></s:elseif>
							<s:elseif test="#time ==4"><s:textfield value="星期四" readonly="true"></s:textfield></s:elseif>
							<s:elseif test="#time ==5"><s:textfield value="星期五" readonly="true"></s:textfield></s:elseif>
							<s:elseif test="#time ==6"><s:textfield value="星期六" readonly="true"></s:textfield></s:elseif>

							</td>
		
							<td>上班时间：</td>
							<td>&nbsp;<sx:datetimepicker type="time"
									displayFormat="HH:mm:ss" toggleType="wipe"
									name="workTime.onDutyTime" />
							</td>
						</tr>
						<tr>
							<td>班次：</td>
							<td>
								<s:hidden name="workTime.dataType"></s:hidden>
							<s:set name="date" value="workTime.dataType"></s:set>
							<s:if test="#date">
								<s:textfield value="午班" readonly="true"></s:textfield>
							</s:if>
							<s:else><s:textfield value="早班" readonly="true"></s:textfield></s:else>
							
							</td>
							<td>下班时间：</td>
							<td>&nbsp;<sx:datetimepicker type="time"
									displayFormat="HH:mm:ss" toggleType="wipe"
									name="workTime.offDutyTime" />
							</td>
						</tr>

						<tr>
							<td colspan="4" align="center"><s:hidden name="id"></s:hidden>
								<s:submit value="保存"></s:submit>&nbsp;&nbsp; <s:reset value="重置"></s:reset>&nbsp;&nbsp;
								<input name="close" type="button" value=" 返回 "
								onClick="javascript:history.go(-1);" /></td>
						</tr>
					</table>
				</s:form>
			</td>
		</tr>
	</table>
</body>

</html>
